package com.calvin.study.strategy.base;

import com.calvin.study.strategy.base.concrete.Food;
import com.calvin.study.strategy.base.concrete.Hotel;
import com.calvin.study.strategy.base.concrete.Waimai;
import com.calvin.study.strategy.base.context.StrategyContext;
import com.calvin.study.strategy.strategy.Strategy;

public class test {
	
	public static void main(String[] args) {
		Waimai waimai = Waimai.getInstance();
		Hotel hotel = Hotel.getInstance();
		Food food = Food.getInstance();
		
		Strategy strategy = StrategyContext.getStrategy(food.getClass().getSimpleName());
		strategy.issue("12312");
	}

}
